.class Lcom/brixd/niceapp/activity/NiceAppSearchActivity$8;
.super Ljava/lang/Object;
.source "NiceAppSearchActivity.java"

# interfaces
.implements Lretrofit/Callback;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->searchApps()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lretrofit/Callback",
        "<",
        "Lorg/json/JSONObject;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/activity/NiceAppSearchActivity;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/activity/NiceAppSearchActivity;)V
    .registers 2
    .param p1, "this$0"    # Lcom/brixd/niceapp/activity/NiceAppSearchActivity;

    .prologue
    .line 256
    iput-object p1, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$8;->this$0:Lcom/brixd/niceapp/activity/NiceAppSearchActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public failure(Lretrofit/RetrofitError;)V
    .registers 5
    .param p1, "error"    # Lretrofit/RetrofitError;

    .prologue
    .line 273
    iget-object v0, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$8;->this$0:Lcom/brixd/niceapp/activity/NiceAppSearchActivity;

    # getter for: Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->mProgressHUD:Lcom/zuiapps/suite/utils/hud/ProgressHUD;
    invoke-static {v0}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->access$500(Lcom/brixd/niceapp/activity/NiceAppSearchActivity;)Lcom/zuiapps/suite/utils/hud/ProgressHUD;

    move-result-object v0

    invoke-virtual {v0}, Lcom/zuiapps/suite/utils/hud/ProgressHUD;->dismiss()V

    .line 274
    iget-object v0, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$8;->this$0:Lcom/brixd/niceapp/activity/NiceAppSearchActivity;

    invoke-virtual {v0}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->getContext()Landroid/content/Context;

    move-result-object v0

    const v1, 0x7f0c00d9

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    .line 275
    const-string v0, "tag"

    const-string v1, "request error"

    invoke-static {v0, v1, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    .line 276
    return-void
.end method

.method public bridge synthetic success(Ljava/lang/Object;Lretrofit/client/Response;)V
    .registers 3

    .prologue
    .line 256
    check-cast p1, Lorg/json/JSONObject;

    invoke-virtual {p0, p1, p2}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$8;->success(Lorg/json/JSONObject;Lretrofit/client/Response;)V

    return-void
.end method

.method public success(Lorg/json/JSONObject;Lretrofit/client/Response;)V
    .registers 7
    .param p1, "jsonObject"    # Lorg/json/JSONObject;
    .param p2, "response"    # Lretrofit/client/Response;

    .prologue
    .line 259
    iget-object v1, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$8;->this$0:Lcom/brixd/niceapp/activity/NiceAppSearchActivity;

    # getter for: Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->mProgressHUD:Lcom/zuiapps/suite/utils/hud/ProgressHUD;
    invoke-static {v1}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->access$500(Lcom/brixd/niceapp/activity/NiceAppSearchActivity;)Lcom/zuiapps/suite/utils/hud/ProgressHUD;

    move-result-object v1

    invoke-virtual {v1}, Lcom/zuiapps/suite/utils/hud/ProgressHUD;->dismiss()V

    .line 260
    invoke-static {p1}, Lcom/brixd/niceapp/model/AppModel;->parseSearchModels(Lorg/json/JSONObject;)Ljava/util/LinkedHashMap;

    move-result-object v0

    .line 261
    .local v0, "map":Ljava/util/LinkedHashMap;, "Ljava/util/LinkedHashMap<Ljava/lang/String;Ljava/util/ArrayList<Lcom/brixd/niceapp/model/AppModel;>;>;"
    invoke-virtual {v0}, Ljava/util/LinkedHashMap;->isEmpty()Z

    move-result v1

    if-eqz v1, :cond_25

    .line 262
    iget-object v1, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$8;->this$0:Lcom/brixd/niceapp/activity/NiceAppSearchActivity;

    invoke-virtual {v1}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->getContext()Landroid/content/Context;

    move-result-object v1

    const v2, 0x7f0c00e6

    const/4 v3, 0x0

    invoke-static {v1, v2, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/Toast;->show()V

    .line 269
    :goto_24
    return-void

    .line 265
    :cond_25
    iget-object v1, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$8;->this$0:Lcom/brixd/niceapp/activity/NiceAppSearchActivity;

    # getter for: Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->mAdapter:Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;
    invoke-static {v1}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->access$600(Lcom/brixd/niceapp/activity/NiceAppSearchActivity;)Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;->setSectionAppsMap(Ljava/util/LinkedHashMap;)V

    .line 266
    iget-object v1, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$8;->this$0:Lcom/brixd/niceapp/activity/NiceAppSearchActivity;

    # getter for: Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->mAdapter:Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;
    invoke-static {v1}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->access$600(Lcom/brixd/niceapp/activity/NiceAppSearchActivity;)Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;

    move-result-object v1

    invoke-virtual {v1}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;->notifyDataSetChanged()V

    .line 268
    iget-object v1, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$8;->this$0:Lcom/brixd/niceapp/activity/NiceAppSearchActivity;

    # invokes: Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->expandAllGroup()V
    invoke-static {v1}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->access$700(Lcom/brixd/niceapp/activity/NiceAppSearchActivity;)V

    goto :goto_24
.end method
